﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace BusinessObjects.Models
{
    [DataContract]
    public class User
    {
        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public string Login { get; set; }

        [DataMember]
        public string Password { get; set; }

        [DataMember]
        public string Surname { get; set; }

        [DataMember]
        public double AccountState { get; set; }

        [DataMember]
        public Department Department { get; set; }

        [DataMember]
        public int DepartmentId { get; set; }

        [DataMember]
        public ICollection<Order> Orders { get; set; }

        [DataMember]
        public UserRole UserRole { get; set; }
    }
}